package cn.gary.oaserver.config.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: 邓必宏
 * @title:
 * @Demo:
 * @DateTime: 2024/3/29
 */
@Data
@ApiModel(value = "分页工具类",description = "用于分页")
@AllArgsConstructor
@NoArgsConstructor
public class PageUtil<T> {

    @ApiModelProperty(value = "当前页码")
    private Integer pageIndex;

    @ApiModelProperty(value = "总记录数")
    private Integer total;

    @ApiModelProperty(value = "当前页数据")
    private List<T> list;

}
